package com.hc.model.code03.test4;

/**
 * @version v1.0
 * @ClassName: FastFood
 * @Description: 抽象构件角色（快餐类）
 * @Author: HC
 */
public abstract class FastFood {

    private float price; // 价格描述
    private String desc; // 描述

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public FastFood() {
    }

    // 计算快餐价格
    public abstract float cost();
}
